{% extends 'layout.html' %}
{% block title %}换电站列表{% endblock %}
{% block content %}
<div class="container">
    <div class="row">
        <div class="col" align="center">
            <h2>{{algorithm.algorithm_name}}</h2>
            <table class="table table-striped">
                <thead>
                        <tr>
                            <th>换电站编号</th>
                            <th>换电站名称（请求）</th>
                            <th>换电站名称（返回）</th>
                        </tr>
                    </thead>
                    <tbody>
                    {% if stations %}
                        {% for station in stations %}
                        <tr>
                            <td><a href="/ai_inspect/algorithm_station_request/{{algorithm.algorithm_topic}}/{{station.station_id}}/">{{ station.station_id }}</a></td>
                            <td>{{ station.station_name }}</td>
                            <td>{{ station.result_station }}</td>
                        </tr>
                        {% endfor %}
                    {% else %}
                        <p>No stations are available.</p>
                    {% endif %}
                    </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}